<template>
	<view class="wrap">
		<scroll-view class="content" scroll-y>
			<view class="title">【疫苗简介】</view>
			<view class="content_text">新型冠状病毒灭活疫苗现阶段适用于18周岁及以上人群</view>
			
			<view class="title">【疫苗名称】</view>
			<view class="content_text">新型冠状病毒灭活疫苗</view>
			
			<view class="title">【疫苗作用】</view>
			<view class="content_text">接种本品可刺激机体产生抗新型冠状病毒的免疫力，用于预防新型冠状病毒引起的疾病。</view>
			
			<view class="title">【接种禁忌】</view>
			<view class="content_text">疫苗接种禁忌参照产品说明书。通常接种疫苗的禁忌包括：（1）对疫苗或疫苗成分过敏者；（2）患急性疾病者；（3）处于慢性疾病的急性发作期者；（4）正在发热者；（5）妊娠期妇女。</view>
		
			<view class="title">【不良反应】</view>
			<view class="content_text">接种疫苗后发生局部不良反应以接种部位疼痛为主，还包括局部瘙痒、肿胀、硬结和红晕等，全身不良反应以疲劳乏力为主，还包括发热、肌肉痛、头痛、咳嗽、腹泻、恶心、厌食和过敏等。</view>
		
			<view class="title">【注意事项】</view>
			<view class="content_text" style="color:red">接种后留观30分钟；如接种后出现不适应及时就医，并向所在接种单位报告。与其他疫苗一样，接种本疫苗可能无法对所有受种者产生100%的保护效果。以上内容可详见疫苗说明书。</view>
			
			
		</scroll-view>
		
		<view class="button">
				<u-button type="primary" @click="toYimiaojiezhong" :disabled="isDisabled">去预约{{content}}</u-button>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: "",
				isDisabled:true
			}
		},
		onShow(){
			this.isDisabled = true
			this.jishiqi()
		},
		methods: {	
			toYimiaojiezhong(){
				uni.navigateTo({
					url:'/pages/yimiaojiezhong/yimiaojiezhong'
				})
			},
			jishiqi(){
				this.content = '(3s)'
				var num = 3
				var jishiqi1 = setInterval(()=>{
					num--
					if(num==0){
						this.isDisabled = false
						this.content = ''
						clearInterval(jishiqi1)
					}else{
						this.content = '('+ num + 's' + ')'
					}
					
				},1000)
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.button{
		
		width: 100%;
		height: 80rpx;
		position: fixed;
		bottom: 0;
		background-color:#005dff ;
		align-items: center;
		.u-button{
			margin-top: 10rpx;
			
		}
	}
	.wrap{
		
		display: flex;
		flex-wrap: wrap;
	}
.content{
	width: 100%;
	margin: 10rpx;
	padding: 30rpx;
	border:4rpx  solid #005dff;
	border-radius: 5%;
	margin-bottom: 100rpx;
	

	.title{
		color:#005dff;
		font-weight: 600;
		font-size: 38rpx;
	}
	.content_text{
		padding: 20rpx 0  20rpx 40rpx;
		font-size: 30rpx;
	}
	
}
</style>
